package com.demo.scenic.mapper;

import com.demo.scenic.domain.PatternInfo;
import com.demo.scenic.domain.PatternInfoExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PatternInfoMapper {
    long countByExample(PatternInfoExample example);

    int deleteByExample(PatternInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PatternInfo record);

    int insertSelective(PatternInfo record);

    List<PatternInfo> selectByExample(PatternInfoExample example);

    PatternInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") PatternInfo record, @Param("example") PatternInfoExample example);

    int updateByExample(@Param("record") PatternInfo record, @Param("example") PatternInfoExample example);

    int updateByPrimaryKeySelective(PatternInfo record);

    int updateByPrimaryKey(PatternInfo record);
}